package com.freemyleft.left.zapp.selectimage.bean;

import java.io.Serializable;

/**
 * Created by VULCAN on 2018/3/13.
 */

public class UpdateImageBean implements Serializable {
    public String path;//图片本地地址
    public String name;//图片名称
    public long time;//图片的创建时间
    public boolean isNetImage;//是否网络图片
    public int height;//图片分辨率高度
    public int width;//图片分辨率宽度
    public String url;//图片网络地址

    public UpdateImageBean(String path, String name, long time, int width, int hight, String url){
        this.path = path;
        this.name = name;
        this.time = time;
        this.height = hight;
        this.width = width;
        this.url = url;
        isNetImage = false;
    }
    public UpdateImageBean(String path, String name, long time, int width, int hight, String url, boolean isNetImage){
        this.path = path;
        this.name = name;
        this.time = time;
        this.height = hight;
        this.width = width;
        this.url = url;
        this.isNetImage = isNetImage;
    }


    @Override
    public boolean equals(Object o) {
        try {
            Image other = (Image) o;
            return this.path.equalsIgnoreCase(other.path);
        }catch (ClassCastException e){
            e.printStackTrace();
        }
        return super.equals(o);
    }
}
